Expander::Expander
Section: ET++ method description (n)
Updated: automatically Thu Mar 21 20:10:58 1991
Index
Return to Main Contents
NAME
Expander::Expander - instance method
TEMPLATE
void Expander(int id, Direction dir, Point gap = gPoint0, Collection * arrangedVObjects = NULL)
SPECIFIERS
public
DESCRIPTION
This constructor can be used if a collection of VObjects already exists or if the VObjects are added later.
For example:
Collection *items = new OrdCollection;
items->Add (new Scroller (myView1));
items->Add (new Scroller (myView2));
Expander *exp = new Expander (cIdNone, eHor, gPoint8, items);
// Adding the VObjects later:
Expander *exp = new Expander (cIdNone, eHor, gPoint8, NULL);
exp->Add (new Scroller (myView1));
exp->Add (new Scroller (myView2));
ARGUMENTS
- int id
-
the id of this
- Direction dir
-
see instvar dir
- Point gap = gPoint0
-
see instvar gap
- Collection * arrangedVObjects = NULL
-
the VObjects to be arranged by this
RETURN ARGUMENT
void
CATEGORIES
client interface
FILES
- implementation:
-
Expander.C
NAME
Expander::Expander - instance method
TEMPLATE
void Expander(int id, Direction dir, Point gap, VObject * firstVObject, ellipsis ...)
SPECIFIERS
public
DESCRIPTION
This constructor is usually used when a complete VObject tree is created with a single statement.
For example:
VObject *layout =
new Expander (cIdNone, eVert, gPoint8,
new BorderItem ("Scrollers",
new Expander (cIdNone, eHor, gPoint4,
new Scroller (myView1),
new Scroller (myView2),
NULL // end of list of 2nd Expander
)
),
new Scroller (myView3),
NULL // end of list of 1st Expander
);
ARGUMENTS
- int id
-
the id of this
- Direction dir
-
see instvar dir
- Point gap
-
see instvar gap
- VObject * firstVObject
-
the first one of the VObjects to be arranged by this
- ellipsis ...
-
a NULL terminated list with the remaining VObjects to be arranged by this
RETURN ARGUMENT
void
CATEGORIES
client interface
FILES
- implementation:
-
Expander.C
Index
- NAME
-
- TEMPLATE
-
- SPECIFIERS
-
- DESCRIPTION
-
- ARGUMENTS
-
- RETURN ARGUMENT
-
- CATEGORIES
-
- FILES
-
- NAME
-
- TEMPLATE
-
- SPECIFIERS
-
- DESCRIPTION
-
- ARGUMENTS
-
- RETURN ARGUMENT
-
- CATEGORIES
-
- FILES
-
This document was created by
man2html,
using the manual pages.
Time: 00:40:27 GMT, March 30, 2022